package com.mdd.common.entity.car;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("订单")
public class CarOrderInfoListed implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    private Long id;

    @ApiModelProperty(value = "订单id")
    private String orderSn;

    @ApiModelProperty(value = "商品名称")
    private String name;
    @ApiModelProperty(value = "商品图片")
    private String picUrl;
    @ApiModelProperty(value = "商品名称")
    private String carBrand;


    @ApiModelProperty(value = "售价")
    private Double price;

    @ApiModelProperty(value = "指导价格")
    private Double marketPrice;

    @ApiModelProperty(value = "押金")
    private Double deposit;

    @ApiModelProperty(value = "0待支付 7已完成 8已取消 9已支付 10 已退款")
    private Integer status;

    @ApiModelProperty(value = "订单类型：0->购物订单；1->租赁订单 2->核销订单 3 零售订单 4采购订单")
    private Integer orderType;


    @ApiModelProperty(value = "门店id")
    private Long storeId;


    @ApiModelProperty(value = "商品id")
    private Long spuId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
